package com.example.domain;

import java.io.Serializable;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————权限类
 * @date 2019-12-17 11:32
 */
@Entity
@Table(name = "menus")
public class Menus implements Serializable {

    private static final long serialVersionUID = 6720966427373224387L;

    @Id
    @GeneratedValue
    @Column(name = "menu_Id")
    private Integer menuId;// 权限ID

    @Column(name = "menuName", length = 32)
    private String menuName;// 权限名称

    @Column(name = "menuPath", length = 32)
    private String menuPath;// 权限路径

    @Column(name = "menuIcon", length = 32)
    private String menuIcon;// 权限封面

    @Column(name = "menuOrder", length = 10)
    private String menuOrder;// 权限等级

    @Column(name = "menuFatherId", length = 10)
    private Integer menuFatherId;// 权限父ID

    @Column(name = "comment", length = 255)
    private String comment;// 备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;// 创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;// 更新记录时间

    public Menus() {

    }

    public Integer getMenuId() {
        return menuId;
    }

    public void setMenuId(Integer menuId) {
        this.menuId = menuId;
    }

    public String getMenuName() {
        return menuName;
    }

    public void setMenuName(String menuName) {
        this.menuName = menuName;
    }

    public String getMenuPath() {
        return menuPath;
    }

    public void setMenuPath(String menuPath) {
        this.menuPath = menuPath;
    }

    public String getMenuIcon() {
        return menuIcon;
    }

    public void setMenuIcon(String menuIcon) {
        this.menuIcon = menuIcon;
    }

    public String getMenuOrder() {
        return menuOrder;
    }

    public void setMenuOrder(String menuOrder) {
        this.menuOrder = menuOrder;
    }

    public Integer getMenuFatherId() {
        return menuFatherId;
    }

    public void setMenuFatherId(Integer menuFatherId) {
        this.menuFatherId = menuFatherId;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Menus [menuId=" + menuId + ", menuName=" + menuName + ", menuPath=" + menuPath + ", menuIcon="
                + menuIcon + ", menuOrder=" + menuOrder + ", menuFatherId=" + menuFatherId + ", comment=" + comment
                + ", recordTime=" + recordTime + ", updateTime=" + updateTime + "]";
    }

}
